﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="faq.aspx.cs" Inherits="EnmineKaitlin.faq" MasterPageFile="~/MasterPage/Default.Master" %>
<asp:Content ID="ctnSubPage" ContentPlaceHolderID="cphContent" runat="server">
    <div class="banner-sub">
      <asp:Image ID="imgBanner" runat="server" />
    </div>
    <div class="container-cat">        
        <div id="siderbar-left">
            <asp:Panel ID="pnlnavleft" runat="server" Visible="false">
            <div class="box-sidebar nav-left">
                <h2><asp:Label ID="lblCatName" runat="server"></asp:Label></h2>
                <asp:Repeater ID="rptListCat" runat="server">
                    <HeaderTemplate>
                        <ul class="content">
                    </HeaderTemplate>
                    <ItemTemplate>
                        <li><a href='faq.aspx?cat=<%#Eval("CatID") %>'><%#Eval("CatName") %></a></li>
                    </ItemTemplate>
                    <FooterTemplate></ul></FooterTemplate>
                </asp:Repeater>        
                <asp:Repeater ID="rptListLeft" runat="server">
                    <HeaderTemplate><ul class="content"></HeaderTemplate>
                    <ItemTemplate>
                        <li><a href='faq.aspx?cat=<%#CatID %>&p=<%#Eval("PostID") %>'><%#Eval("Title") %></a></li>
                    </ItemTemplate>
                    <FooterTemplate></ul></FooterTemplate>
                </asp:Repeater>
            </div>                     	                    	       
            </asp:Panel>                                     
            <asp:Repeater ID="rptBannerSubPage" runat="server">
                <HeaderTemplate><div class="banner-left"></HeaderTemplate>
                <ItemTemplate>
                    <%#Eval("Content") %>
                </ItemTemplate>
                <FooterTemplate></div></FooterTemplate>
            </asp:Repeater>            
        </div>
        <div id="cat-content" class="content">
            <div class="box-sidebar">
                <h2><asp:Label ID="lblTitle" runat="server"></asp:Label></h2>
                <div class="content">                    
                    <asp:Repeater ID="rptFAQ" runat="server">
                        <ItemTemplate>
                            <div class="faq-item">
                                <p><asp:Label ID="lblSender" Text='<%#GetString("sender") %>' runat="server"></asp:Label>: <strong><%#Eval("Sender") %></strong> | <asp:Label ID="lblSendDate" Text='<%#GetString("senddate") %>' runat="server"></asp:Label>: <span class="datetime"><%#Eval("SendDate") %></span></p>
                                <p class="question"><asp:Label ID="lblQuestion" Text='<%#GetString("question") %>' runat="server"></asp:Label>:</p>
                                <p><%#Eval("Question") %></p>
                                <p>&nbsp;</p>
                                <p><asp:Label ID="lblReplyer" Text='<%#GetString("replyer") %>' runat="server"></asp:Label>: <strong><%#Eval("Replyer") %></strong> | <asp:Label ID="lblReplyDate" Text='<%#GetString("replydate") %>' runat="server"></asp:Label>: <span class="datetime"><%#Eval("ReplyDate") %></span></p>
                                <p class="answer"><asp:Label ID="lblAnswer" Text='<%#GetString("answer") %>' runat="server"></asp:Label>: </p>
                                <p><%#Eval("Answer") %></p>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                    <div class="ask">
                        <h3><asp:Label ID="lblAsk" runat="server"></asp:Label></h3>
                        <table border="0">
                            <tr><td><asp:Label ID="lblName" runat="server"></asp:Label>:(*)</td><td><asp:TextBox ID="txtName" runat="server" Width="250" CssClass="txt required"></asp:TextBox></td></tr>
                            <tr><td><asp:Label ID="lblCategory" runat="server"></asp:Label>:</td><td><asp:DropDownList ID="ddlCategory" runat="server" Width="256" CssClass="select" DataTextField="CatName" DataValueField="CatID"></asp:DropDownList></td></tr>
                            <tr><td><asp:Label ID="lblQuestion" runat="server"></asp:Label>:(*)</td><td><asp:TextBox ID="txtQuestion" TextMode="MultiLine" Width="500" Height="200" CssClass="textarea required" runat="server"></asp:TextBox></td></tr>
                            <tr><td></td><td><asp:Button ID="btnSend" runat="server" Text="Gửi câu hỏi" CssClass="btn" OnClick="btnSend_Click" /><asp:LinkButton ID="lbtCancel" runat="server" CssClass="btn link-btn" Text="Hủy"></asp:LinkButton></td></tr>
                        </table>
                    </div>
                </div>
            </div>        
        </div>
    </div>         
</asp:Content>
